From 0c6e490cdad207919f1d861972ffbd1f78b36c92 Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Fri, 19 Jul 2024 06:52:44 -0600 Subject: [PATCH] enhance garmin route writes for devices using D201_Rte_Hdr_Type. (#1297) which use GPS_PWay->rte_cmnt for the route name. --- garmin.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/garmin.cc b/garmin.cc index 732f12b09..9ffb56d5c 100644 --- a/garmin.cc +++ b/garmin.cc @@ -907,6 +907,11 @@ GarminFormat::route_hdr_pr(const route_head* rte) (*cur_tx_routelist_entry)->rte_num = rte->rte_num; (*cur_tx_routelist_entry)->isrte = 1; if (!rte->rte_name.isEmpty()) { + /* for devices that use D201_Rte_Hdr_Type */ + write_char_string((*cur_tx_routelist_entry)->rte_cmnt, + str_from_unicode(rte->rte_name).constData(), + sizeof((*cur_tx_routelist_entry)->rte_cmnt)); + /* for devices that use D202_Rte_Hdr_Type */ write_char_string((*cur_tx_routelist_entry)->rte_ident, str_from_unicode(rte->rte_name).constData(), sizeof((*cur_tx_routelist_entry)->rte_ident)); -- 2.30.2